#ifndef SHOW_H
#define SHOW_H

#include <QWidget>
#include <QTimer>
#include "VideoCtrl.h"
// #include "VideoCtrl0.h"

namespace Ui {
class Show;
}

class Show : public QWidget
{
    Q_OBJECT

public:
    explicit Show(QWidget *parent = nullptr);
    ~Show();

    void play(QString strFileName);

public slots:
    void onFrameDimensionChanged(int nFrameWidth, int nFrameHeight);

private:
    void changeShow();

private:
    Ui::Show *ui;
    int m_nLastFrameWidth;
    int m_nLastFrameHeight;

    QTimer timerShowCursor;
};

#endif // SHOW_H
